import { request } from "@umijs/max";
import { stringify } from 'qs';

//评论列表
export const getCommentPage = (params: any) =>
  request(`/comment/back-page?${stringify(params)}`, {
    method: "GET",
  });

  //删除一级评论
  export const delComment = (id:any) =>
  request(`/comment/del/${id}`, {
    method: "DELETE",
  });
    //删除二级评论
    export const delReComment = (id:any) =>
    request(`/reply/del/${id}`, {
      method: "DELETE",
    });